﻿@model SettingItem
@Html.Extra()
<table>
    <tr>
        <th>
            @Html.LabelFor(model => model.Name, "名称")
        </th>
        <td>
            @Html.MyNet().TextBoxFor(model => model.Name, new ValidateOptions
            {
                RequiredError = "请输入名称",
                LengthMax = 64
            })
            @Html.MyNet().ValidationMessageFor(model => model.Name)
        </td>
    </tr>
    <tr>
        <th>
            @Html.LabelFor(model => model.Key, "代码")
        </th>
        <td>
            @Html.MyNet().TextBoxFor(model => model.Key, new ValidateOptions
                {
                    RequiredError = "请输入代码",
                    LengthMax = 64
                })
            @Html.MyNet().ValidationMessageFor(model => model.Key)
        </td>
    </tr>
    <tr>
        <th>
            @Html.LabelFor(model => model.Value, "值")
        </th>
        <td>
            @Html.MyNet().TextAreaFor(model => model.Value, null, new { style = "width:500px; height:200px;" })
        </td>
    </tr>
    <tr>
        <th>
            @Html.LabelFor(model => model.Description, "描述")
        </th>
        <td>
            @Html.MyNet().TextAreaFor(model => model.Description)
            @Html.MyNet().ValidationMessageFor(model => model.Description)
        </td>
    </tr>
</table>
